package com.project.light.service.impl;

import com.project.light.entity.StationStatus;
import com.project.light.mapper.StationStatusMapper;
import com.project.light.service.StationStatusService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
public class StationStatusServiceImpl implements StationStatusService {

    @Resource
    private StationStatusMapper stationStatusMapper;

    @Transactional(rollbackFor = Exception.class)
    @Override
    public void insert(StationStatus entity) throws Exception {
        stationStatusMapper.insertSelective(entity);
    }
}
